project(EthCanTool)
cmake_minimum_required(VERSION 2.6)
add_definitions(-std=c++14 -Wall)

#查找指定目录下的所有源文件，然后将结果存进指定变量名
aux_source_directory(. DIR_SRCS)

SET(CMAKE_SOURCE_DIR .)
# SET(CMAKE_MODULE_PATH ${CMAKE_ROOT}/Modules ${CMAKE_SOURCE_DIR}/cmake/modules)

add_subdirectory(proto)
add_subdirectory(win)
# add_subdirectory(net)

add_executable(EthCanTool ${DIR_SRCS})
target_link_libraries(EthCanTool win_lib ncurses)